import React from 'react'
import './DateSelectPanel.css'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCaretUp, faCaretDown} from '@fortawesome/free-solid-svg-icons'

function DateSelectorWidget(props) {
    return (
        <div className='DateSelectorWidgetContainer'>
            <div className='DateSelectorWidgetName'>{props.dateName}</div>
            <div className='DateSelectorWidgetYMD'>
                <div style={{height:'17px'}}>
                    <FontAwesomeIcon icon={faCaretUp}  className="DateSelectorWidgetYMDButton Y"/>
                    <FontAwesomeIcon icon={faCaretUp}  className="DateSelectorWidgetYMDButton M"/>
                    <FontAwesomeIcon icon={faCaretUp}  className="DateSelectorWidgetYMDButton D"/>
                </div>
                
                <div style={{height:'20px'}}>
                    <span className="DateSelectorWidgetYMDNumber"> {props.dateYear}&nbsp;</span>
                    <span className="DateSelectorWidgetYMDNumber"> {props.dateMonth}&nbsp;</span>
                    <span className="DateSelectorWidgetYMDNumber"> {props.dateDay}</span>
                </div>
                
                <div style={{height:'17px'}}>
                    <FontAwesomeIcon icon={faCaretDown}  className="DateSelectorWidgetYMDButton Y"/>
                    <FontAwesomeIcon icon={faCaretDown}  className="DateSelectorWidgetYMDButton M"/>
                    <FontAwesomeIcon icon={faCaretDown}  className="DateSelectorWidgetYMDButton D"/>
                </div>
                
            </div>
        </div>
    )
}

export default DateSelectorWidget
